package com.ryskoo.basicdata.area.region.domain;

import com.ryskoo.framework.core.bean.BasicPO;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 地区-区县
 * @author qyc
 *
 */
@Entity
@Table(name = "BDS_REGION")
public class RegionPO extends BasicPO{

	private static final long serialVersionUID = -3340789136338340887L;

	/* 区县名称 */
    @Column(name = "name", length = 60)
    private String name;
    
    /* 上级ID */
    @Column(name = "parent_id", length = 20)
    private String parentId;
    
   
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	@Override
	public String toString() {
		return "RegionPO [name=" + name + ", parentId=" + parentId + "]";
	}

	
    
}
